<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ConvertAddTimeAndLimit extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('convert_formulas', function (Blueprint $table) {
            $table->dateTime('start_time')->nullable()->comment('合成开始时间');
            $table->dateTime('end_time')->nullable()->comment('合成结束时间');
            $table->integer('limit')->default(-1)->comment('合成限量');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('convert_formulas', function (Blueprint $table) {
        });
    }
}
